<%--
  Created by IntelliJ IDEA.
  User: VictoryZ
  Date: 2022/3/31
  Time: 14:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
</head>
<body>
<h3>
    <%String username = request.getSession().getAttribute("success").toString();%>
    您好，<%=username %>
<%--    当前在线人数为：<%=application.getAttribute("count") %>--%>
    当前在线人数为：<%=session.getAttribute("count1") %>
    已登录用户数：<%=request.getSession().getServletContext().getAttribute("count2")%>
</h3>
<%--<a href="<%=response.encodeUrl("logout.jsp") %>">退出登录</a>--%>
<a href="logout">退出登录</a>

</body>
</html>